<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="robots" content="noindex,nofollow" charset="utf-8">
<title>积分兑换系统登录</title>
<link href="{$Think.config.Style}/login/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="{$Think.config.Style}/js/jquery.min.js"></script>
  <script type="text/javascript" src="{$Think.config.Style}/layer/layer.js"></script>
</head>
<body>
    <div id="container">
        <div id="header">
          <h1></h1>
          <ul class="nav"></ul>
        </div>
    <div id="content">
      <div class="left_main">
        <ul class="news" style="color:#FFFFFF; text-align:center; margin-top:40px;">
          <img src="{$Think.config.Style}/login/ablogo-s.png">
        </ul>
      </div>
      	<form>
        <fieldset class="right_main">
          <legend></legend>     
          <dl class="setting">
            <dt>
              <label>用户名</label>
            </dt>
            <dd><span class="text_input"><input type="text" name="username" ></span></dd>
            <dt>
              <label>密码</label>
            </dt>
            <dd><span class="text_input"><input type="password" name="password"></span></dd>
            <dt>
              <label>验证码</label>
            </dt>
            <dd>
            <span class="short_input">
            <input name="code" type="text" style="text-transform: uppercase;">
            </span>
              <span class="yzm">
            <img id="Code_Img" src="{:captcha_src()}" style="cursor:hand;border:1px solid #ccc;vertical-align:top;margin-bottom:15px;" onclick="this.src='{:captcha_src()}?'+Math.random()" width="120" height="25">
           </dd>
                <dd>
          	    <input type="button" onclick="sub(this)" name="Submit" class="login_btn" value="">
                </dd>
          </dl>
          </fieldset>
      </form>
    </div>
        <div id="footer"></div>
    </div>
      <script type="text/javascript">
function sub(){
          $.ajax({
            type : 'post',
            url :'{:url('back/login/logining')}',
            data : $("form").serialize(),
            dataType : 'json',
            success : function(data){
               if(data.status==1){              
               window.location.href='{:url('back/Index/index')}';
              }else{
                layer.msg(data.msg, {icon: 2,time: 2000});
               }
            }
        });
    }
  </script>
</body>
</html>